POV-Ray : Newsgroups : povray.general : Problem: Text around/on a sphere, help me! : Re: Problem: Text around/on a sphere, help me! Server Time
31 Jul 2024 08:25:15 EDT (-0400)
  Re: Problem: Text around/on a sphere, help me!  
From: - -==TheCa5e==- -
Date: 6 Jul 2007 16:10:01
Message: <web.468ea0cec66f4ceba5ca18bf0@news.povray.org>
Part of what I have so far,


#include "shapes.inc"
#include "metals.inc"
#include "colors.inc"
global_settings {assumed_gamma 2.0}
camera { location < 0, 0, +15> up < 0, 1, 0> right <  1.3333, 0, 0> look_at
< 0, -0.25, 0> angle 15 }
light_source  { < -1, 2, +2 > color White }
light_source  { < 0, 1, +8 > color White }
#declare color_bond = White     ;
#declare finish_all = finish { phong 0.8 }
#declare color_H = rgb <0.95,0.95,0.95>    ;
#declare color_C = rgb < 0.1, 0.1, 0.1 > ;
background { color White      }
#declare color_O  = Red     ;
#declare color_N  = Blue    ;
#declare color_Pd = Green   ;
#declare color_S  = Yellow  ;

//-------------------------------------------------------------------spheres
union {
// Pd1
       sphere {
               <    3.0070,  -0.2782,  -1.5342 >, 0.45
               texture { pigment { color   color_Pd}
               finish { finish_all } } }
// O1
       sphere {
               <    0.8712,  -0.6197,  -1.3006 >, 0.20
               texture { pigment { color   color_O }
               finish { finish_all } } }
//--------------------------------------------------------------------bonds
// bond Pd1     O1      1
          cylinder {
               <   2.5670,  -0.3486,  -1.4860 > , <    2.4307,  -0.3704,
-1.4711 >,
  0.050
               texture { pigment { color color_bond }
               finish { finish_all } } }
// bond Pd1     O1      1
          cylinder {
               <   2.2944,  -0.3922,  -1.4562 > , <    2.1581,  -0.4140,
-1.4413 >,
  0.050
               texture { pigment { color color_bond }
               finish { finish_all } } }
// bond Pd1     O1      1
          cylinder {
               <   2.0217,  -0.4357,  -1.4264 > , <    1.8854,  -0.4575,
-1.4115 >,
  0.050
               texture { pigment { color color_bond }
               finish { finish_all } } }
// bond Pd1     O1      1
          cylinder {
               <   1.7491,  -0.4793,  -1.3966 > , <    1.6128,  -0.5011,
-1.3817 >,
  0.050
               texture { pigment { color color_bond }
               finish { finish_all } } }
// bond Pd1     O1      1
          cylinder {
               <   1.4765,  -0.5229,  -1.3668 > , <    1.3402,  -0.5447,
-1.3519 >,
  0.050
               texture { pigment { color color_bond }
               finish { finish_all } } }
// bond Pd1     O1      1
          cylinder {
               <   1.2039,  -0.5665,  -1.3370 > , <    1.0676,  -0.5883,
-1.3221 >,
  0.050
               texture { pigment { color color_bond }
               finish { finish_all } } }

scale  0.240
rotate y*180
translate y*-0.25
}

tx again

Kees


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.